package android_design_mode.chapter22_flyweight;

public class Test {

    public static void main(String[] args) {
        System.out.println("---------Flayweight---------");

        Ticket ticket01 = TicketFactory.getTicket("Q", "Z");
        ticket01.showTicketInfo("U");
        Ticket ticket02 = TicketFactory.getTicket("Q", "Z");
        ticket02.showTicketInfo("M");
        Ticket ticket03 = TicketFactory.getTicket("Q", "Z");
        ticket03.showTicketInfo("D");


    }

}
